// console.log(process.env)
import Vue from 'vue'

import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

const token = window.sessionStorage.getItem('auth-token');
if (token) {
    store.commit("token",token)
}
Vue.prototype.$http = axios
Vue.config.productionTip = false


new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
